﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/UserCP.master" AutoEventWireup="True"
    CodeBehind="RegisterProduct.aspx.cs" Inherits="University.Workshop.WebApp.RegisterProduct" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <title>LQS - Product Registration</title>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h3 align="center">Product Registration</h3>
        <p align="center">
            <asp:Label ID="errorMsg" runat="server" Text="Error message" Visible="False" ForeColor=Red></asp:Label>
        </p>
    <table align="center">
    <tr>
    <td>
       *Product Name:
    </td>
    <td>
       <asp:TextBox ID="xName" runat=server Width="408px" MaxLength=100></asp:TextBox>
       <br />
    </td>
    </tr>
    <tr>
    <td>
       *Price:
    </td>
    <td>
       <asp:TextBox ID="xPrice" runat=server MaxLength=10></asp:TextBox>
       &nbsp
       Currency:
       <asp:RadioButton GroupName="currency" ID="rBolivianos" runat=server Text="Bolivianos" Checked=true />
       &nbsp
       <asp:RadioButton GroupName="currency" ID="rDollars" runat=server Text="$us" />
       <br />
    </td>
    </tr>
    <tr>
    <td>
        *Quantity (Less than 100)
    </td>
    <td>
        <asp:TextBox ID="xQuantity" runat=server MaxLength=100></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
       *Description:
    </td>
    <td>
    <asp:TextBox ID="description" runat="server" TextMode=MultiLine Rows=10 Columns=50 Wrap=true></asp:TextBox>
       <br />
    </td>
    </tr>
    <tr>
    <td>
       *Category:
    </td>
    <td>
    <asp:DropDownList ID="category" runat=server>
    <asp:ListItem Selected=True Text="Electronics" Value="Electronics"></asp:ListItem>
    <asp:ListItem Selected=False Text="Fashion" Value="Fashion"></asp:ListItem>
    <asp:ListItem Selected=False Text="Motors" Value="Motors"></asp:ListItem>
    <asp:ListItem Selected=False Text="Collectibles & Art" Value="Collectibles & Art"></asp:ListItem>
    <asp:ListItem Selected=False Text="Home, Outdoors & Decor" Value="Home, Outdoors & Decor"></asp:ListItem>
    <asp:ListItem Selected=False Text="Entertainment" Value="Entertainment"></asp:ListItem>
    <asp:ListItem Selected=False Text="Deals & Gifts" Value="Deals & Gifts"></asp:ListItem>
    </asp:DropDownList>
       <br />
    </td>
    </tr>
    <tr>
    <td colspan=2>
    (Optional)Upload up to 5 images:
    <br />
        <asp:FileUpload ID="img1" runat="server" />
        <br />
        <asp:FileUpload ID="img2" runat="server" />
        <br />
        <asp:FileUpload ID="img3" runat="server" />
        <br />
        <asp:FileUpload ID="img4" runat="server" />
        <br />
        <asp:FileUpload ID="img5" runat="server" />
        <br />
        <br />
        </td>
    </tr>
    <tr>
    <td>
        <asp:Button ID="submit" runat="server" Text="Register Product" 
            onclick="submit_Click" />
    </td>
    <td align=center>
    <asp:Button ID="cancel" runat="server" Text="Cancel Registration" 
            onclick="cancel_Click" />
    </td>
    </tr>
    </table>
</asp:Content>
